<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
    <link rel="stylesheet" href="css/bootstrap.css">
</head>
<body>
<div class="container" style="padding-top: 50px;">
    <div class="row text-center mt-5"><h3>欢迎登录我的管理系统</h3></div>
    <div class="row">
        <div class="col-5">
            <img src="img/abb.png" alt="" srcset="" width="100%">
        </div>
        <div class="col-7 pt-5">
            <form action="/registerProcess" method="post" onsubmit="redirectToLoginPage()">
                <div class="form-control">
                    <input type="text" name="username" id="" placeholder="输入姓名:">
                </div>
                <div class="form-control">
                    <input type="password" name="userpwd" id="">
                </div>
                <div class="form-control">
                    <input type="submit" value="注册" class="btn btn-danger">
                </div>
            </form>
            <p><a href="/">已有账号，直接登录</a></p>
        </div>
    </div>
</div>

<script src="lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="lib/jquery/dist/jquery.min.js"></script>
<script src="lib/formvalidation/js/formValidation.js"></script>
<script src="lib/formvalidation/js/framework/bootstrap.js"></script>
<script src="lib/formvalidation/js/language/zh_CN.js"></script>
<script src="dist/js/bootstrap-admin.min.js"></script>
<script src="dist/js/app.js"></script>

<script>
    function redirectToLoginPage() {
        // 提交表单后，重定向到登录页面
        location.href = '/';  // 请根据实际路径调整
    }
</script>
</body>
</html>